package com.yuelan.apartment.service;

import com.yuelan.apartment.domain.ApaApartment;

import java.util.List;

/**
 * @description:
 * @Author: ZhaoYi
 * @date: 24-5-18 11:04
 */
public interface ApaApartmentService {

    /**
     * 新增
     */
    int add(ApaApartment apaApartment);

    /**
     * 删除
     */
    int delete(Long id);

    /**
     * 批量删除
     */
    int deleteIds(Long[] ids);

    /**
     * 更新
     */
    int update(ApaApartment apaApartment);

    /**
     * 查询
     */
    ApaApartment load(Long id);

    /**
     * 分页查询
     */
    List<ApaApartment> pageList(ApaApartment apaApartment);

    /**
     * 查询所有房源
     */
    List<ApaApartment> allHouse();

}
